package com.jrh.web.admin;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jrh.biz.comments.CommentsService;
import com.jrh.domain.entity.Comments;

/**
 * 评论Controller
 * 
 * @author yout 2012-7-18 下午9:18:13
 */

@Controller
@RequestMapping("/admin/comments")
public class AdminCommentsController {

    @Autowired
    private CommentsService commentsService;

    @RequestMapping("/list")
    public String list(Model model) {
        List<Comments> list = commentsService.listCommentsByCondition(null);

        model.addAttribute("list", list);
        
        return "/admin/comments/list";
    }

}
